< previous page page_436 next page >

Page 436
See API Commandment IV
See Tutorial 6, "C++ Variables Meet Visual Basic," in Part III of this book.
Puzzle 5
See API Commandment IV
Puzzle 6
See API Commandment 9.
See Tutorial 6, "C++ Variables Meet Visual Basic," in Part III of this book.
Puzzle 7
The math is correct.
So is the program logic.
Puzzle 8
Once you've solved the obvious problem and still can't get the function to work, read the description of the GetVersionEx function in the Win32 online documentation or in my book Visual Basic Programmer's Guide to the Win32 API.
Puzzle 9
The function declaration is correct.
Puzzle 10
The api32.txt file (on the CD included with this book) uses the following declaration for GetEnvironmentStrings:

 
< previous page page_436 next page >